<template>
  <el-container>
    <!-- 头部开始 -->
    <el-header>
      <div class="header-box">
        <div class="head-box-left">
          <i class="el-icon-s-fold"></i>
          <span id="cache0">订单管理 / 订单详情</span>
        </div>
        <div class="head-box-right">
          <div class="right-icon-box">
            <i class="el-icon-search"></i>
            <i class="el-icon-bell"></i>
          </div>
          <div class="head-img-box">
            <img src="../assets/u28.jpg" alt />
          </div>
          <p class="header-name">{{this.$store.state.loginName}}</p>
        </div>
      </div>
    </el-header>
    <!-- 头部结束 -->
    <!-- 内容开始 -->
    <el-main>
      <div class="main-box">
        <!-- 订单编号 -->
        <div class="main-order">
          <div class="main-order-title">
            <p>订单编号：O123456</p>
          </div>
          <div class="main-order-con">
            <el-row :gutter="30">
              <el-col :span="8">
                <div class="grid-content bg-purple">
                  <p>学员姓名：王文文</p>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="grid-content bg-purple">
                  <p>交易时间：2019-2-10 12：23</p>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="grid-content bg-purple">
                  <p>报名备注：这里是备注</p>
                </div>
              </el-col>
            </el-row>
            <el-row :gutter="30">
              <el-col :span="8">
                <div class="grid-content bg-purple">
                  <p>联系电话：15758599595</p>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="grid-content bg-purple">
                  <p>支付时间：2019-2-10 12：23</p>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="grid-content bg-purple">
                  <p>打印备注：这里是打印备注</p>
                </div>
              </el-col>
            </el-row>
            <el-row :gutter="30">
              <el-col :span="8">
                <div class="grid-content bg-purple">
                  <p>校 区：包河校区</p>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="grid-content bg-purple">
                  <p>订单种类：新单</p>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="grid-content bg-purple">
                  <p>录入类型：后台录入</p>
                </div>
              </el-col>
            </el-row>
            <el-row :gutter="30">
              <el-col :span="8">
                <div class="grid-content bg-purple">
                  <p>经办人：王校长</p>
                </div>
              </el-col>
              <el-col :span="8">
                <div class="grid-content bg-purple">
                  <p>交易状态：交易成功</p>
                </div>
              </el-col>
            </el-row>
          </div>
        </div>
        <!-- 购买内容 -->
        <div class="main-buy">
          <div class="main-buy-title">
            <p>购买内容</p>
          </div>
          <el-table :data="tableData" style="width: 100% ; align:center">
            <el-table-column prop="name" label="课程名称" width="120px"></el-table-column>
            <el-table-column prop="teacher" label="老师"></el-table-column>
            <el-table-column prop="purchaseHours" label="购买课时"></el-table-column>
            <el-table-column prop="beforeSigningUp" label="报名前已上" width="100px"></el-table-column>
            <el-table-column prop="price" label="单价"></el-table-column>
            <el-table-column prop="amount" label="金额"></el-table-column>
            <el-table-column prop="discount" label="优惠"></el-table-column>
            <el-table-column prop="signedAmount" label="签单金额"></el-table-column>
            <el-table-column prop="paid" label="实收"></el-table-column>
            <el-table-column prop="finalPayment" label="尾款"></el-table-column>
            <el-table-column prop="deadline" label="截止时间" width="100px"></el-table-column>
            <el-table-column prop="count" label="请假次数限制" width="110px"></el-table-column>
            <el-table-column prop="operating" label="操作"></el-table-column>
          </el-table>
          <div class="main-shou-title">
            <p>收支流水记录</p>
          </div>
          <el-row :gutter="20">
            <el-col :span="4">
              <div class="grid-content bg-purple">交易时间</div>
            </el-col>
            <el-col :span="4">
              <div class="grid-content bg-purple">收入金额</div>
            </el-col>
            <el-col :span="4">
              <div class="grid-content bg-purple">流水类型</div>
            </el-col>
            <el-col :span="4">
              <div class="grid-content bg-purple">支付方式</div>
            </el-col>
            <el-col :span="4">
              <div class="grid-content bg-purple">支付时间</div>
            </el-col>
            <el-col :span="4">
              <div class="grid-content bg-purple">备注</div>
            </el-col>
          </el-row>
          <ul class="main-shou-list">
            <li v-for="(item,index) in dataList[0]" :key="index">{{item}}</li>
          </ul>
          <ul class="main-shou-list">
            <li v-for="(item,index) in dataList[1]" :key="index">{{item}}</li>
          </ul>
        </div>
      </div>
    </el-main>
    <!-- 内容结束 -->
  </el-container>
</template>
<script>
export default {
  name: "finance-item1-m1",
   mounted(){
     this.$axios
        .get("/app/mock/264777/example/1598250282721")
        .then((res) => {
          this.tableData = res;
        })
        .catch((err) => console.log(err));
  },
  data() {
    return {
      tableData: [],
      dataList:[
        {
          time:"2019/02/12 12:00",
          price:"￥100",
          kinds:"定金",
          method1:"支付宝",
          payTime:"2019/02/12 12:00",
          remarks:"这里是备注"
        },
        {
          time:"2019/02/12 12:00",
          price:"￥900",
          kinds:"补齐尾款",
          method1:"微信",
          payTime:"2019/02/12 12:00",
          remarks:"这里是备注"
        }
      ]
    };
  },
};
</script>
<style  scoped>
/* 头部开始 */
.el-header {
  width: 1236px;
  height: 65px;
}
.header-box {
  width: 1236px;
  height: 65px;
  clear: both;
}
.head-box-left {
  width: 336px;
  height: 65px;
  float: left;
  line-height: 65px;
}
.head-box-left .el-icon-s-fold {
  font-size: 25px;
  font-weight: normal;
  color: #595959;
  position: relative;
  top: 5px;
}
.head-box-left #cache0 {
  color: #5f5f5f;
  font-size: 14px;
  margin-left: 14px;
}
.head-box-right {
  width: 250px;
  height: 65px;
  float: right;
  align-items: center;
  display: flex;
}
.right-icon-box {
  width: 50px;
}
.el-icon-search {
  font-size: 20px;
  font-weight: normal;
  color: #727272;
  margin-right: 8px;
}
.el-icon-bell {
  font-weight: normal;
  font-size: 20px;
  color: #727272;
}
.head-img-box {
  width: 24px;
  margin-left: 18px;
  margin-right: 20px;
}
.head-img-box img {
  width: 100%;
  height: 100%;
}
.header-name {
  font-size: 14px;
  color: #5f5f5f;
}
/* 头部结束 */
/* 内容开始 */
.main-box {
  width: 100%;
}
/* 订单编号 */
.main-order {
  width: 1220px;
  height: 217px;
  background: #fff;
  padding-left: 20px;
  padding-top: 20px;
}
.main-order-title p {
  font-size: 20px;
  font-weight: 650;
}
.main-order-con {
  width: 1200px;
  height: 170px;
  padding-top: 10px;
}
.el-row {
  padding: 8px 0;
}
.el-row .grid-content p {
  font-size: 14px;
  color: #272727;
}
/* 购买内容 */
.main-buy {
  width: 1218px;
  height: 567px;
  background: #fff;
  margin-top: 20px;
}
.main-buy-title {
  width: 100%;
  height: 65px;
}
.main-buy-title p {
  font-size: 18px;
  font-weight: 500;
  color: #272727;
  margin-left: 20px;
  line-height: 65px;
}
/* .el-table__header-wrapper th{
  background:red !important;
  color:#000 !important;
}
.el-table .cell{
  color:#000 !important;

} */
.main-shou-title {
  width: 100%;
  height: 65px;
}
.main-shou-title p {
  font-size: 18px;
  font-weight: 500;
  color: #272727;
  margin-left: 20px;
  line-height: 65px;
}
.main-buy .el-row{
  width: 1189px;
  height: 54px;
  background:#F2F2F2;
  line-height:40px;
  font-size:14px;
  color:#252525;
  margin-left:18px !important;
  padding-left:30px !important;
}
.main-shou-list{
  width: 1189px;
  height: 54px;
  margin-left:20px !important;
  border-bottom:1px solid #EBF1F7;
  padding-left:30px
}
.main-shou-list li{
  float:left;
  width: 180px;
  line-height: 54px;
  list-style:none;
  /* text-align:center; */
  font-size: 14px;
  color:#666666;
  margin-right:10px;
  padding-left:14px;
}
/* 内容结束 */
</style>
